// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.

.user-group-badge {
  @_top: user-group-badge;
  border-radius: 20px;
  font-size: 10px;
  background-color: hsla(var(--hsl-b6), 0.75);
  padding: 2px 10px;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--group-colour, @osu-colour-c1);

  a& {
    .link-hover({ color: var(--group-colour, @osu-colour-c1); });
    .link-plain();
  }

  &::before {
    content: attr(data-label);
  }

  // actual modifiers start here
  &--t-forum {
    width: 100%;
    font-size: @font-size--tiny;
    padding-left: 0;
    padding-right: 0;

    @media @desktop {
      margin: auto;
      width: min-content;
      font-size: @font-size--small;
      padding-left: 20px;
      padding-right: 20px;
    }
  }

  &--owner {
    background-color: hsl(var(--hsl-l1));
    color: hsl(var(--hsl-b6));
  }

  &--profile-page {
    font-size: inherit;
  }

  &--probationary {
    opacity: 0.6;
    background-color: @osu-colour-b6;
  }

  &__modes {
    color: white;
    padding-left: 5px;
    display: flex;

    @media @mobile {
      .@{_top}--t-forum & {
        display: none;
      }
    }

    & > i {
      padding: 1px;
    }
  }
}
